# This script installs the very minimal set of programs needed
# to use MacMiNT and install other packages.
#
# These following archives need to be in your $SAVE directory:
#
# (MacMiNT archive)
# futilb.zoo
#
# (Atari Archive)
# Gnustuff/Tos/Othergnu/shlutl18.zoo
# Gnustuff/Tos/Othergnu/gzip107st.zoo
# Mint/Utilities/tar-1112.zoo
#

PATH=/usr/local/bin:/bin:/usr/bin:$MGNU/bin:.
export PATH

# extract basics
cd bin
zoo xq: $SAVE/futilb.zoo
zoo xq: $SAVE/shlutl18.zoo test.ttp basename.ttp
mv test.ttp [ || \
	echo "can't find $SAVE/futilb.zoo and/or $SAVE/shlutl18.zoo"
chmod +x [ || exit
cd ..

# check for everything else
for i in tar-1112.zoo gzip107st.zoo; do
	if [ ! -r $SAVE/$i ] ; then
		echo "can't find $SAVE/$i"
		exit 1
	fi
done

mkdir -p usr/bin tmp mac src emacs netbsd

cd usr/bin

echo tar
zoo xq: $SAVE/tar-1112.zoo tar

echo gzip
zoo xq $SAVE/gzip107st.zoo gzip.ttp

